<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="box" data-number="5">
        <p>55</p>
        <h3>646400</h3>
        <em>4646</em>
        <i>88</i>
    </div>
    <script>
        var box = document.querySelector('#box');
        //console.log(box.childNodes,box.children);
        //console.log(box.firstChild,box.firstElementChild);
        //console.log( box.parentNode,box.parentElement);
        //console.log( box.offsetParent );
        box.dataset.maxNum =589;
    </script>
</body>
</html>